using System;
using System.Web.Mvc;
using Coleotrack.Areas.Admin.Controllers;
using Coleotrack.Service.Contracts;
using Moq;
using NUnit.Framework;

namespace Coleotrack.Test.Controllers.Admin
{
    public class UserControllerTest : ConcernOf<UserController>
    {
        private Mock<IUserService> userService;

        public override void Setup()
        {
            userService = new Mock<IUserService>();

            Sut = new UserController(userService.Object);
            Sut.SetFakeControllerContext(false);
        }

        [Test]
        public void Create_should_return_View()
        {
            // Arrange
            

            // Act
            var result = (ViewResult) Sut.Create();

            // Assert
            Assert.IsInstanceOf(typeof(ViewResult), result);
        }

        [Test]
        public void Index_should_return_View()
        {
            // Arrange


            // Act
            var result = (ViewResult)Sut.Index();

            // Assert
            Assert.IsInstanceOf(typeof(ViewResult), result);
        }

        public override void Teardown()
        {
            //throw new NotImplementedException();
        }
    }
}